package com.bbs.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @PackageName: com.bbs.entity
 * @ClassName: BBSUser
 * @Description:
 * @Author: Rambo
 * @Data: 2024/6/2 23:09
 */

/**
 * 论坛用户-用户实体类
 */
@Data
@TableName(value = "tb_bbs_user")
public class BBSUser implements Serializable {
    //用户ID
    private Long userId;

    //登陆名称(默认为邮箱号码)
    private String loginName;

    //MD5加密后的密码
    private String passwordMd5;

    //用户昵称
    private String nickName;

    //用户头像图片路径
    private String headImgUrl;

    //用户性别
    private String gender;

    //用户居住地
    private String location;

    //用户简介
    private String introduce;

    //用户状态 0=正常 1=禁言
    private Byte userStatus;

    //用户最新登陆时间
    private Date lastLoginTime;

    //用户注册时间
    private Date createTime;
}
